From f84ee327e5b8311dfa73f059453ef80a5e8a2af2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 16 Jun 2009 11:18:32 +0100 Subject: [PATCH] tmem: fix minor accounting error Reset a counter when all tmem pages are released. This only affects status reporting (as displayed by xm tmem-list or the just patched xenballoon-monitor) but the incorrectly reported result is misleading. Signed-off-by: Dan Magenheimer --- xen/common/tmem_xen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c index 6a0b14f456..774bb7dc12 100644 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_host(void) { scrub_list_splice(&tmh_page_list); INIT_PAGE_LIST_HEAD(&tmh_page_list); + tmh_page_list_pages = 0; } spin_unlock(&tmh_page_list_lock); } -- 2.30.2